package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.HandoverCreateDto;
import com.molichuxing.services.infrastructure.dto.request.modify.HandoverModifyDto;
import com.molichuxing.services.infrastructure.dto.response.HandoverDto;
import com.molichuxing.services.property.HandoverTypeEnum;

/**
 * 车辆交接单service
 * 
 * @author zoumingyu
 * @date 2019年10月26日
 *
 */
public interface HandoverService extends RootService {

	/**
	 * 新增车辆交接信息
	 * 
	 * @param createDto
	 * @return
	 */
	public Boolean create(HandoverCreateDto createDto);

	/**
	 * 查询交接单信息
	 * 
	 * @param orderCode
	 *            订单号
	 * @param type
	 *            交接单类型
	 * @return
	 */
	public HandoverDto getHandover(Long orderCode, HandoverTypeEnum type);

	/**
	 * 修改车辆交接信息
	 * 
	 * @param modifyDto
	 * @return
	 */
	public Boolean modify(HandoverModifyDto modifyDto);
}
